package demo1;

public class Dog extends Animal{

    public void bark(){
        System.out.println(this.name+"正在汪汪叫");
    }

    public Dog(String name,int age){
        super(name,age);
        System.out.println("Dog 构造方法");
    }

    static {
        System.out.println("Dog static.....");
    }

    {
        System.out.println("Dog 实例");
    }

    public Dog(){
        super("eee",78);
    }

//    public Dog(String name,int age){
//        this.name=name;
//        this.age=age;
//    }

//    @Override
//    public String toString() {
//        return "Dog{" +
//                "name='" + name + '\'' +
//                ", age=" + age +
//                '}';
//    }
}
